package com.guangzi.mapper;

import com.guangzi.common.Pager;
import com.guangzi.entity.UserMoney;
import com.guangzi.entity.UserMoneyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;


@Mapper
public interface UserMoneyDao extends BaseDao {
    @Override
    List <Object> listPagerCriteria(@Param("pager") Pager pager, @Param("query") Object obj);

    @Override
    Long countCriteria(@Param("query") Object obj);

    Long getMoney(@Param("uid") String uid);

    Long getZmoney(@Param("uid") String uid);

    void updateMoney(@Param("money") String money,@Param("zmoney") String zmoney,@Param("uid") String uid);

    UserMoney findJlmoney(@Param("uid") Long uid);

    void updateJlmoney(@Param("jlmoney")BigDecimal jlmoney,@Param("uid")Long uid);

    UserMoneyVO getByUid(@Param("uid")Long uid);

    UserMoneyVO listMoney(@Param("uid")Long uid);

    void updateZmoney(UserMoneyVO userMoneyVO);

    List<Object> listPagerUid(@Param("pager") Pager pager, @Param("query") Object obj);

    Long getCount( @Param("query") Object obj);

    //将现金劵转入余额，改变用户可用余额
    void updateKymoney(Object object);
}
